package com.home.school.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "t_log")
public class TLog {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "message")
    private String message;

    @TableField(value = "args")
    private String args;

    @TableField(value = "event_name")
    private String eventName;

    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 默认  0 未删除 1删除
     */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    public static final String COL_ID = "id";

    public static final String COL_MESSAGE = "message";

    public static final String COL_ARGS = "args";

    public static final String COL_EVENT_NAME = "event_name";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_DELETED = "deleted";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}